package com.hk.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 图片
 *
 * @TableName picture
 */
@TableName(value = "picture")
@Data
public class Picture implements Serializable {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "图片 url")
    @TableField(value = "url")
    private String url;

    @ApiModelProperty(value = "图片名称")
    @TableField(value = "name")
    private String name;

    @ApiModelProperty(value = "简介")
    @TableField(value = "introduction")
    private String introduction;

    @ApiModelProperty(value = "分类")
    @TableField(value = "category")
    private String category;

    @ApiModelProperty(value = "标签（JSON 数组）")
    @TableField(value = "tags")
    private String tags;

    @ApiModelProperty(value = "图片体积")
    @TableField(value = "picSize")
    private Long picSize;

    @ApiModelProperty(value = "图片宽度")
    @TableField(value = "picWidth")
    private Integer picWidth;

    @ApiModelProperty(value = "图片高度")
    @TableField(value = "picHeight")
    private Integer picHeight;

    @ApiModelProperty(value = "图片宽高比例")
    @TableField(value = "picScale")
    private Double picScale;

    @ApiModelProperty(value = "图片格式")
    @TableField(value = "picFormat")
    private String picFormat;

    @ApiModelProperty(value = "创建用户 id")
    @TableField(value = "userId")
    private Long userId;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "createTime")
    private Date createTime;

    @ApiModelProperty(value = "编辑时间")
    @TableField(value = "editTime")
    private Date editTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "updateTime")
    private Date updateTime;
//
//    @ApiModelProperty(value = "是否删除")
//    @TableField(value = "isDelete")
//    @TableLogic
//    private Integer isDelete;

    @ApiModelProperty(value = "状态：0-待审核; 1-通过; 2-拒绝  ")
    @TableField(value = "reviewStatus")
    private Integer reviewStatus;

    @ApiModelProperty(value = "审核信息")
    @TableField(value = "reviewMessage")
    private String reviewMessage;

    @ApiModelProperty(value = "审核人 id  ")
    @TableField(value = "reviewerId")
    private Long reviewerId;

    @ApiModelProperty(value = "审核时间")
    @TableField(value = "reviewTime")
    private Date reviewTime;

    @ApiModelProperty(value = "空间id")
    @TableField(value = "spaceId")
    private Long spaceId;

    @ApiModelProperty(value = "图片主色调")
    @TableField(value = "picColor")
    private String picColor;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}